#include<func.h>
int main()
{
    //僵尸进程
    if(fork())
    {
        //父进程
        printf("i m dad,getpid = %d, getppid = %d\n",getpid(),getppid());
        sleep(20);
        return 0;
    }
    else
    {
        //子进程
        printf("i m child,getpid = %d.getppid= %d\n",getpid(),getppid());
        return 0;
    }
}